<?php
$vMenuName = "";
$vMenuCon = "";

$vMenu = isset($_GET["menu"]) ? $_GET["menu"] : '';
if(empty($vMenu)){
    $vMenu = "coin";
}

switch ($vMenu){
	case "redpacket":
        $vMenuName = "红包管理";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/games/games_list'>红包游戏管理</a>";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/betslog'>发包记录</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/betslogforuser?isusertype=0'>红包参与记录</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/transferlog'>转包(转帐)记录</a>";
        break;
	case "rooms":
        $vMenuName = "房间管理";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/rooms/rooms_list'>管理已有房间</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/rooms/rooms_blacklist'>黑名单管理</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/rooms/rooms_whitelist'>白名单管理</a>";
        break;
	case "users":
        $vMenuName = "用户管理";		
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/members_list'>会员用户管理</a>";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/members_level_list'>会员用户等级</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/agentuser_list'>代理用户管理</a>";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/agent_level_list'>代理等级设置</a>";
//        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/agentlinks_list'>推广链接管理</a>";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/userbanks'>用户银行管理</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/autosend_list'>机器人</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/probability_list'>概率用户管理</a>";
        //$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/avatar_list'>随机头像管理</a>";
		$vMenuCon .= '<a href="javascript:;" class="mainFrame" action="/members/loginlog">会员登录日志</a>';
        break;
    case 'coin':
        $vMenuName = "资金日志";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/coinlog'>资金帐变</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/givecoinlog'>赠送资金帐变</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/cashlog'>提现日志</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/rechargelog'>充值日志</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/transferlog'>转包(转帐)记录</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/members/scorelog'>积分帐变</a>";
        break;
	case "box":
        $vMenuName = "短信管理";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/box/mail_add'>发站内信息</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/box/mail_sendlist'>发件箱</a>";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/box/mail_receive'>收件箱</a>";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/box/mail_push_pop'>APP信息推送</a>";
        break;
	case "exchange":
        $vMenuName = "兑换商品管理";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/exchange/category'>兑换商品分类管理</a>";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/exchange/products'>已上架商品管理</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/exchange/orders'>商品兑换订单管理</a>";
        break;
	case "news":
        $vMenuName = "文章管理";		
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/news/news_add'>添加文章</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/news/news'>文章列表管理</a>";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/news/category'>文章分类设置</a>";
        break;
	case "ads":
        $vMenuName = "广告管理";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/advs/category'>广告分类</a>";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/advs/index_add'>添加新广告</a>";
		foreach($advs_category as $k=>$adv){
			$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/advs/index?categoryid=".$adv['id']."'>".$adv['title']."</a>";
		}
        break;
	case "count":
		$vMenuName = "数据统计";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/index/desktop?c=1'>数据报表</a>";
        // $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/index/desktop_list'>游戏测试</a>";
		break;
	case "sys":
		$vMenuName = "系统管理";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/sys/system_setup'>系统设置</a>";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/sys/banklist'>银行设置</a>";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/sys/rechargeline'>充值线路设置</a>";
		$vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/sys/payway'>充值通道设置</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/sms/index'>短信通道设置</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/sys/userlist'>系统管理员</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/sys/auth'>系统控制器设置</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/sys/usergroup'>管理员分组设置</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/sys/adminloger'>管理员登录日志</a>";
        $vMenuCon .= "<a href='javascript:;' class='mainFrame' action='/sys/adminactionlog'>管理员操作日志</a>";
		break;
	default :
		break;
}
?>
<div class="lefttop">
    <?php echo $vMenuName;?>
</div>
<div class="leftmenu">
    <?php echo $vMenuCon;?>
</div>
